package com.woniuxy.enums;

/**
 * @author booty
 * @version 1.0
 * @date 2021/3/26 12:13
 */
public enum Exchange {
    /**
     * 交换机
     */
    BROKER_EXCHANGE("broker1", "brokerQuery1", "brokerRouterKey1"),
    BROKER_EXCHANGE_DELAY("brokerDelay1", "brokerQueryDelay1", "brokerRouterKeyDelay1"),
    BROKER_EXCHANGE_DEAD("brokerDead1", "brokerQueryDead1", "brokerRouterKeyDelay1");
    private final String name;
    private final String query;
    private final String routerKey;

    Exchange(String name, String query, String routerKey) {
        this.name = name;
        this.query = query;
        this.routerKey = routerKey;
    }

    public String getName() {
        return name;
    }

    public String getQuery() {
        return query;
    }

    public String getRouterKey() {
        return routerKey;
    }
}
